package nowcode

func JumpStar2(n int) int {
	ways := make([]int, n+1)
	ways[0] = 1

	for i := 1; i <= n; i++ {
		for j := 0; j < i; j++ {
			ways[i] += ways[j]
		}
	}

	return ways[n]
}
